﻿using System;
using System . Collections . Generic;
using System . Linq;
using System . Text;
using System . Threading . Tasks;
using System . Xml . Linq;

namespace GameClassLibrary . Buffs
{
    /// <summary>
    /// 指示绑定到区域的效果
    /// </summary>
    public class AreaBuff : Buff
    {
        public Maps . Area Target { get; set; }

        public virtual bool BlockBuy { get; }

        public virtual bool BlockBuild { get; }

        public virtual bool BlockCharge { get; }

        public AreaBuff ( XElement saving ) : base ( saving )
        {


        }

        public override XElement Save ( )
        {
            XElement temp=base.Save();

            temp . SetAttributeValue ( "Target" , Target . Index );

            return temp;
        }
    }
}
